package com.ttbj.product.bean.dto;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 订单二维码以及订单信息
 * @author Administrator
 *
 */
@JsonInclude(Include.NON_NULL)
public class QRCodeOrderDto implements Serializable {
 
	private static final long serialVersionUID = 6203257577562842752L;
	@NotBlank(message = "二维码获取失败")
	private String QRCodeurl; //二维码url地址
	@NotBlank(message = "联系人信息获取失败")
	private String senderName;//联系人姓名 
	@NotBlank(message = "联系人电话信息获取失败")
	private String senderPhone;//联系电话隐去中间位
	@NotBlank(message = "地址获取失败")
	private String reciverAddr;//收件人地址
	private String senderAddr;//寄件人地址
	public QRCodeOrderDto() {
		// TODO Auto-generated constructor stub
	}
	
	public QRCodeOrderDto(String qRCodeurl, String senderName, String senderPhone, String reciverAddr, String senderAddr) {
		super();
		QRCodeurl = qRCodeurl;
		this.senderName = senderName;
		this.senderPhone = senderPhone;
		this.reciverAddr = reciverAddr;
		this.senderAddr = senderAddr;
	}


	public String getQRCodeurl() {
		return QRCodeurl;
	}
	public void setQRCodeurl(String qRCodeurl) {
		QRCodeurl = qRCodeurl;
	}
	public String getSenderName() {
		return senderName;
	}
	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}
	public String getSenderPhone() {
		return senderPhone;
	}
	public void setSenderPhone(String senderPhone) {
		this.senderPhone = senderPhone;
	}
	public String getReciverAddr() {
		return reciverAddr;
	}
	public void setReciverAddr(String reciverAddr) {
		this.reciverAddr = reciverAddr;
	}
	public String getSenderAddr() {
		return senderAddr;
	}
	public void setSenderAddr(String senderAddr) {
		this.senderAddr = senderAddr;
	}

	@Override
	public String toString() {
		return "QRCodeOrderDto [QRCodeurl=" + QRCodeurl + ", senderName=" + senderName + ", senderPhone=" + senderPhone + ", reciverAddr=" + reciverAddr + ", senderAddr=" + senderAddr + "]";
	}
	
}
